import { preparePullLiveStream } from '../api/index'
const app = getApp()
export function batchPreparePullStream(cameralist: { CamID: string, ELVName: string, [prop: string]: any }[]) {
  cameralist.forEach(ele => {
    if (ele.CamID && ele.ELVName && app.globalData.token) {
      preparePullLiveStream({
        CamID: ele.CamID,
        ELVName: ele.ELVName
      })
    }
  })
}